package org.jeecgframework.web.material.service;
import org.jeecgframework.web.activiti.entity.Leave;
import org.jeecgframework.web.activiti.util.Variable;
import org.jeecgframework.web.material.entity.OrderProcessEntity;
import org.jeecgframework.web.material.entity.OrderFormEntity;
import org.jeecgframework.web.material.entity.OrderProductEntity;

import java.util.List;
<<<<<<< HEAD
=======
import java.util.Map;
>>>>>>> a9c7731b4788b28c37d962faa7843e2cac438e61

import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.service.CommonService;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;

public interface OrderProcessServiceI extends CommonService{
	
 	public <T> void delete(T entity);
	/**
	 * 添加一对多
	 * 
	 */
	public void addMain(OrderProcessEntity orderProcess,
	        List<OrderFormEntity> orderFormList) ;
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(OrderProcessEntity orderProcess,
	        List<OrderFormEntity> orderFormList);
	public void delMain (OrderProcessEntity orderProcess);
	
	
	public void  completeTask(String taskId,Variable var,OrderFormEntity form);
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(OrderProcessEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(OrderProcessEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(OrderProcessEntity t);
 	
 	/**
	 * 启动请假流程
	 * @param OrderProcessEntity
	 */
	public void processWorkFlowStart(OrderProcessEntity entity);
	
	/**
	 * 启动请假流程
	 * @param OrderProcessEntity
	 */
	public void processWorkFlowStart(List<OrderProductEntity> orderProductList);

	public OrderProcessEntity getOrderProcess(int id);
<<<<<<< HEAD
=======
	
	public Map<String, String> getProcessActivity();
	
	
	public void orderMerge(String  ids,String parentId);
	
	public void  splitMerge(String ids);
	
	public void   claim(String taskId);
>>>>>>> a9c7731b4788b28c37d962faa7843e2cac438e61
}
